---
layout: default
---
{%- if page.authors -%}
  {%- capture links -%}
    {%- for author in page.authors -%}
      {% include function-getContributor type="name" search=author %}
      {% include function-displayAuthor contributor=contributor %}\
    {%- endfor -%}
  {%- endcapture -%}
  {% assign authors = links | split: "\" | array_to_sentence_string %}
{%- else -%}
  {%- capture authors -%}
    {% include function-getContributor type="name" search=page.author %}
    {% include function-displayAuthor contributor=contributor %}
  {%- endcapture -%}
{%- endif -%}
{%- include function-getCategoryMeta name=page.categories.first %}
{% assign post_date = page.date | date: "%Y" %}
<section id="section-page">
  <header class="main">
    <h1 class="post-title">{{ page.title }}</h1>
    <p><a href="{{ site.jekyll-archives.permalinks.year | replace: ":year", post_date }}">{{ page.date | date_to_string }}</a> · by {{ authors }}{% if category-meta.size %} in <a href="{{ site.jekyll-archives.permalinks.category | replace: ":name", category-meta.name }}">{{ category-meta.caption }}</a>{%endif%}</p>
  </header>
  <div class="content">
    {{ content }}
    {% if page.tags.size > 0  %}
    <div class="tags">
      <h4 class="title">Article tags</h4>
      {% for tag in page.tags %}
        <span class="tag"><a href="{{ site.jekyll-archives.permalinks.tag | replace: ":name", tag }}">{{ tag }}</a></span>      
      {% endfor %}      
      </div>
    </p>
    {% endif %}
  </div>
</section>
{% include section-prevnext.html %}
<section> 
  {%- if page.authors -%}
    {%- for author in page.authors -%}
      {% include function-getContributor type="name" search=author %}
      {% include section-author.html %}
      <hr>
    {%- endfor -%}  
  {%- else -%}
    {% include function-getContributor type="name" search=page.author %}
    {% include section-author.html %}
  {%- endif -%}  
</section>
